Move pdbfile to deprecated. Drop uuid.h.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 18 Jan 2015 21:43:14 +0000 (21:43 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 18 Jan 2015 21:43:14 +0000 (21:43 +0000)
gpsbabel/GPSBabel.pro
gpsbabel/deprecated/pdbfile.h [new file with mode: 0644]
gpsbabel/msvc/GPSBabel.vcxproj
gpsbabel/pdbfile.h [deleted file]
gpsbabel/uuid.h [deleted file]

index b2ef817eb0ee046e9fee2e1477bbaa2bb91b24c3..6596b81bf84ba3cf72aef66cb339be6c3c3d4119 100644 (file)
@@ -226,7 +226,6 @@ HEADERS =  \
        session.h \
        shapelib/shapefil.h \
        strptime.h \
-       uuid.h \
        xmlgeneric.h \
        zlib/crc32.h \
        zlib/deflate.h \
diff --git a/gpsbabel/deprecated/pdbfile.h b/gpsbabel/deprecated/pdbfile.h
new file mode 100644 (file)
index 0000000..e382b82
--- /dev/null
@@ -0,0 +1,83 @@
+/*
+
+    Minimum support for Palm/OS database files
+    Copyright (C) 2007 Olaf Klein, o.b.klein@gpsbabel.org
+
+    Written after study the Coldsync project
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
+
+ */
+
+#ifndef PDBFILE_H
+#define PDBFILE_H
+
+#include "defs.h"
+
+#if PDBFMTS_ENABLED
+
+#include "gbfile.h"
+
+#include <time.h>
+
+#define PDB_DBNAMELEN          32
+#define PDB_FLAG_RESOURCE      0x0001
+#define PDB_FLAG_BACKUP                0x0008
+#define EPOCH_1904             2082844800L
+
+typedef struct pdbrec_s {
+  uint32_t  offs;
+  int32_t  size;
+  uint32_t id;
+  uint8_t  category;
+  uint8_t  flags;
+  char*    data;
+  struct pdbrec_s* next;
+} pdbrec_t;
+
+typedef struct {
+  gbfile* file;
+  char mode;           /* file-mode: 1 = read / 2 = write */
+  char name[PDB_DBNAMELEN + 1];        /* database name */
+  uint16_t attr;               /* attributes */
+  uint16_t version;    /* version */
+  time_t ctime;                /* creation time */
+  time_t mtime;                /* modification time */
+  time_t btime;                /* backup time */
+  uint32_t revision;
+  int32_t appinfo_offs;        /* offset to application info */
+  int32_t index_offs;  /* offset to sort-index info */
+  uint32_t creator;
+  uint32_t type;
+  uint32_t uid;
+  uint16_t rec_ct;
+  struct pdbrec_s* rec_list;
+  struct pdbrec_s* rec_curr;
+  void* appinfo;
+  int appinfo_len;
+} pdbfile;
+
+
+pdbfile* pdb_open(const char* filename, const char* module);
+pdbfile* pdb_create(const char* filename, const char* module);
+void pdb_close(pdbfile* file);
+int pdb_eof(pdbfile* fin);
+void pdb_rewind(pdbfile* fin);
+int pdb_read_rec(pdbfile* fin, uint8_t* flags, uint8_t* category, uint32_t* rec_id, void** data);
+int pdb_read_rec_by_id(pdbfile* fin, const uint32_t rec_id, uint8_t* flags, uint8_t* category, void** data);
+void pdb_write_rec(pdbfile* fout, const uint8_t flags, const uint8_t category, const uint32_t rec_id, const void* data, const uint32_t size);
+
+#endif
+#endif
index 0832596d3ab15fd5e56c4b4b5dfd01ebbb3ce872..f5013d704be27bf7702e714a829013561e7db8f0 100644 (file)
     <ClCompile Include="..\units.cc" />\r
     <ClCompile Include="..\util.cc" />\r
     <ClCompile Include="..\util_crc.cc" />\r
-    <ClCompile Include="..\uuid.cc" />\r
     <ClCompile Include="..\v900.cc" />\r
     <ClCompile Include="..\vcf.cc" />\r
     <ClCompile Include="..\vecs.cc" />\r
     <ClInclude Include="..\quovadis.h" />\r
     <ClInclude Include="..\session.h" />\r
     <ClInclude Include="..\strptime.h" />\r
-    <ClInclude Include="..\uuid.h" />\r
     <ClInclude Include="..\jeeps\gps.h" />\r
     <ClInclude Include="..\jeeps\gpsapp.h" />\r
     <ClInclude Include="..\jeeps\gpscom.h" />\r
diff --git a/gpsbabel/pdbfile.h b/gpsbabel/pdbfile.h
deleted file mode 100644 (file)
index e382b82..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
-
-    Minimum support for Palm/OS database files
-    Copyright (C) 2007 Olaf Klein, o.b.klein@gpsbabel.org
-
-    Written after study the Coldsync project
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
-
- */
-
-#ifndef PDBFILE_H
-#define PDBFILE_H
-
-#include "defs.h"
-
-#if PDBFMTS_ENABLED
-
-#include "gbfile.h"
-
-#include <time.h>
-
-#define PDB_DBNAMELEN          32
-#define PDB_FLAG_RESOURCE      0x0001
-#define PDB_FLAG_BACKUP                0x0008
-#define EPOCH_1904             2082844800L
-
-typedef struct pdbrec_s {
-  uint32_t  offs;
-  int32_t  size;
-  uint32_t id;
-  uint8_t  category;
-  uint8_t  flags;
-  char*    data;
-  struct pdbrec_s* next;
-} pdbrec_t;
-
-typedef struct {
-  gbfile* file;
-  char mode;           /* file-mode: 1 = read / 2 = write */
-  char name[PDB_DBNAMELEN + 1];        /* database name */
-  uint16_t attr;               /* attributes */
-  uint16_t version;    /* version */
-  time_t ctime;                /* creation time */
-  time_t mtime;                /* modification time */
-  time_t btime;                /* backup time */
-  uint32_t revision;
-  int32_t appinfo_offs;        /* offset to application info */
-  int32_t index_offs;  /* offset to sort-index info */
-  uint32_t creator;
-  uint32_t type;
-  uint32_t uid;
-  uint16_t rec_ct;
-  struct pdbrec_s* rec_list;
-  struct pdbrec_s* rec_curr;
-  void* appinfo;
-  int appinfo_len;
-} pdbfile;
-
-
-pdbfile* pdb_open(const char* filename, const char* module);
-pdbfile* pdb_create(const char* filename, const char* module);
-void pdb_close(pdbfile* file);
-int pdb_eof(pdbfile* fin);
-void pdb_rewind(pdbfile* fin);
-int pdb_read_rec(pdbfile* fin, uint8_t* flags, uint8_t* category, uint32_t* rec_id, void** data);
-int pdb_read_rec_by_id(pdbfile* fin, const uint32_t rec_id, uint8_t* flags, uint8_t* category, void** data);
-void pdb_write_rec(pdbfile* fout, const uint8_t flags, const uint8_t category, const uint32_t rec_id, const void* data, const uint32_t size);
-
-#endif
-#endif
diff --git a/gpsbabel/uuid.h b/gpsbabel/uuid.h
deleted file mode 100644 (file)
index 161b89e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
-    Copyright (C) 2004 Justin Broughton, justinbr@earthlink.net
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
-
- */
-
-typedef unsigned char uuid_t[16];
-
-void gb_uuid_generate(uuid_t uu);